import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/car/getList',
    method: 'get',
    params,
  })
}
export function doEdit(data) {
  return request({
    url: '/car/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/car/doDelete',
    method: 'post',
    data,
  })
}

export function getTypeList(params) {
  return request({
    url: '/car/type/getList',
    method: 'get',
    params,
  })
}

export function doTypeEdit(data) {
  return request({
    url: '/car/type/doEdit',
    method: 'post',
    data,
  })
}

export function doTypeDelete(data) {
  return request({
    url: '/car/type/doDelete',
    method: 'post',
    data,
  })
}

export function getPublicPlayList(params) {
  return request({
    url: '/car/publicPlay/getList',
    method: 'get',
    params,
  })
}

export function doPublicPlayEdit(data) {
  return request({
    url: '/car/publicPlay/doEdit',
    method: 'post',
    data,
  })
}

export function doPublicPlayDelete(data) {
  return request({
    url: '/car/publicPlay/doDelete',
    method: 'post',
    data,
  })
}

export function getPlayList(params) {
  return request({
    url: '/car/play/getList',
    method: 'get',
    params,
  })
}

export function doPlayEdit(data) {
  return request({
    url: '/car/play/doEdit',
    method: 'post',
    data,
  })
}

export function doPlayDelete(data) {
  return request({
    url: '/car/play/doDelete',
    method: 'post',
    data,
  })
}

export function setPlayAllow(data) {
  return request({
    url: '/car/play/setAllow',
    method: 'post',
    data,
  })
}

export function getPlayYearList(params) {
  return request({
    url: '/car/play/getYearList',
    method: 'get',
    params,
  })
}
